package com.hqyj.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/sys")
public class SystemController {
    @RequestMapping("{page}")
    public String goPage(@PathVariable String page){
        return page;
    }
    @RequestMapping("/goUserList")
    public String goUserList(){
        return "user-list";
    }
    @RequestMapping("/goAdd")
    public String goAdd(){
        return "user-add";
    }
    @RequestMapping("/goEdit")
    public String goEdit(){
        return "user-edit";
    }
    @RequestMapping("/goIndex")
    public String goIndex(){
        return "index";
    }
    @RequestMapping("/goLogin")
    public String goLogin(){
        return "login";
    }
    @RequestMapping("/goUnauthorized")
    public String goUnauthorized(){
        return "unauthorized";
    }
    @RequestMapping("/goRegister")
    public String goRegister(){
        return "user-register";
    }
    @RequestMapping("/goOrderlist")
    public String goOrderlist(){
        return "order_list";
    }
    @RequestMapping("/goOrderadd")
    public String goOrderadd(){
        return "order_add";
    }
    @RequestMapping("/goPaymentList")
    public String goPaymentList(){
        return "payment-list";
    }
    @RequestMapping("/goTicketList")
    public String goTicketList(){
        return "ticket-list";
    }
    @RequestMapping("/goTicketadd")
    public String goTicketadd(){
        return "ticket_add";
    }

}
